import request from '@/request/index.js';

export function submitNurseOrder(data) {
	return request.post({
		url: '/app-api/collaboration/nurse/create',
		data: data || {},
		custom: {
			title: "提交护理订单",
			authentication: true
		}
	});
}

export function getNurseClassify(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-classify/getClassify',
		params: params || {},
		custom: {
			title: "获取护理分类",
			authentication: true
		}
	});
}

export function getNurseRecommend(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-classify/listRecommend',
		params: params || {},
		custom: {
			title: "获取护理推荐",
			authentication: true
		}
	});
}

export function getNurseHot(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project/get-hot-nurse-service',
		params: params || {},
		custom: {
			title: "获取热门护理",
			authentication: true
		}
	});
}

export function getNurseMore(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project/get-more-nurse-project',
		params: params || {},
		custom: {
			title: "获取更多护理",
			authentication: true
		}
	});
}

export function searchNurse(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project/search-nurse-project',
		params: params || {},
		custom: {
			title: "搜索护理",
			authentication: true
		}
	});
}

export function getNurseDetails(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project/detail',
		params: params || {},
		custom: {
			title: "获取护理详情",
			authentication: true
		}
	});
}

export function createNurseEvaluate(data) {
	return request.post({
		url: '/app-api/collaboration/nurse/project-comment/create',
		data: data || {},
		custom: {
			title: "护理评价",
			authentication: true
		}
	});
}

export function getNurseEvaluateCount(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-comment/get-service-comment-count',
		params: params || {},
		custom: {
			title: "获取护理评价统计",
			authentication: true
		}
	});
}

export function getNurseEvaluateTypes(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-comment/tagsAndCount',
		params: params || {},
		custom: {
			title: "获取护理评价类型",
			authentication: true
		}
	});
}

export function getNurseEvaluateList(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-comment/page',
		params: params || {},
		custom: {
			title: "获取护理评价列表",
			authentication: true
		}
	});
}

export function getMyNurseEvaluateList(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-comment/my-comment-page',
		params: params || {},
		custom: {
			title: "获取我的护理评价列表",
			authentication: true
		}
	});
}

export function submitNurseCollect(params) {
	return request.post({
		url: '/app-api/collaboration/nurse/project-collection/collection',
		params: params || {},
		custom: {
			title: "护理-收藏取消收藏",
			authentication: true
		}
	});
}

export function getNurseCollectList(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/project-collection/page',
		params: params || {},
		custom: {
			title: "护理-收藏列表",
			authentication: true
		}
	});
}

export function changeNurseAddress(params) {
	return request.post({
		url: '/app-api/collaboration/nurse/alterAddress',
		data: params || {},
		custom: {
			title: "修改护理订单地址",
			authentication: true
		}
	});
}

export function cancelNurseOrder(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/cancelOrderNurse',
		params: params || {},
		custom: {
			title: "取消护理订单",
			authentication: true
		}
	});
}

export function getNurseOrderInfo(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/get-order-nurse-by-id',
		params: params || {},
		custom: {
			title: "获取护理订单信息",
			authentication: true
		}
	});
}

export function getNurseOrderDetails(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/patient-get',
		params: params || {},
		custom: {
			title: "获取护理订单详情",
			authentication: true
		}
	});
}

export function updateNurseOrderDetail(data) {
	return request.post({
		url: '/app-api/collaboration/nurse/edit-nurse-order',
		data: data || {},
		custom: {
			title: "编辑护理订单",
			authentication: true
		}
	});
}

export function getNurseOrderList(params) {
	return request.get({
		url: '/app-api/collaboration/nurse/getOrderNursePage',
		params: params || {},
		custom: {
			title: "获取护理订单列表",
			authentication: true
		}
	});
}

export function applyNurseRefund(data) {
	return request.post({
		url: '/app-api/collaboration/nurse/apply-nurse-refund',
		data: data || {},
		custom: {
			title: "护理订单申请退款",
			authentication: true
		}
	});
}

export function cancelApplyNurseRefund(params) {
	return request.post({
		url: '/app-api/collaboration/nurse/cancel-after-sales',
		params: params || {},
		custom: {
			title: "护理订单取消售后",
			authentication: true
		}
	});
}

export function payNurseOrder(params) {
	return request.post({
		url: '/app-api/collaboration/nurse/nurse-wait-pay',
		params: params || {},
		custom: {
			title: "支付护理订单",
			authentication: true
		}
	});
}